# -*— coding: utf-8 -*-
# @Time: 2024/5/24 15:40
# @Author :Lin Zhou
# @Email : lin1013143@163.com
# @File : json_utils.py
# @SoftWare: PyCharm
import json


def json_loads(obj):
    try:
        return json.loads(obj) if obj else []
    except json.JSONDecodeError:
        return []  # 或者抛出异常，或者返回默认值
